package net.zhangbaolin.systemadmin.entity;

import lombok.Data;

@Data
public class Menu {
//    path: '/dashboard',
//    name: 'dashboard',
//    component: DEFAULT_LAYOUT,
//    meta: {
//        locale: 'menu.dashboard',
//                requiresAuth: true,
//                icon: 'icon-dashboard',
//                order: 0,
//    },
//    children: [
//    {
//        path: 'workplace',
//                name: 'Workplace',
//            component: () => import('@/views/dashboard/workplace/index.vue'),
//            meta: {
//        locale: 'menu.dashboard.workplace',
//                requiresAuth: true,
//                roles: ['*'],
//    },
//    },
//    {
//        path: 'monitor',
//                name: 'monitor',
//            component: () => import('@/views/dashboard/monitor/index.vue'),
//            meta: {
//        locale: 'menu.dashboard.monitor',
//                requiresAuth: true,
//                roles: ['*'],
//    },
//    },
//            ],
//};
    @Data
    public static class Meta {
        private String locale;
        private boolean requiresAuth;
        private String icon;
        private int order;
        private String[] roles;
    }


    private String path;
    private String name;
    private String component;
    private Meta meta;
    private Menu[] children;

}
